package nc.vo.hihr.bg;

import java.util.ArrayList;

import nc.bs.framework.common.NCLocator;
import nc.itf.uap.IUAPQueryBS;
import nc.jdbc.framework.processor.BeanListProcessor;
import nc.vo.pub.BusinessException;

/**
 * 
 * 
 * @author LP
 *
 */

public class QueryVO {
	 public static ArrayList query(String sql,Class aClass) throws BusinessException  {
		  
		  ArrayList<Object> lists = null;
		  IUAPQueryBS bs = NCLocator.getInstance().lookup(IUAPQueryBS.class);
		 
		   lists = (ArrayList<Object>)bs.executeQuery(sql, new BeanListProcessor(aClass));

		  return lists;
		 }
}

